<?php

import('com.yamvc.controller.IAction');
import('com.yamvc.controller.Action');
import("com.yamvc.view.View");
import("com.yamvc.model.Model");
import("com.simpleApplication.view.ApplicationMediator");
import("com.simpleApplication.view.MenuMediator");
import("com.simpleApplication.view.PageMediator");
import("com.simpleApplication.model.PagesDataProxy");

class PageNotFoundAction extends Action implements IAction {
	
	function execute() {
		//Model::instance()->registerProxy("pagesDataProxy",new PagesDataProxy());		
		/*$pageTemplate = View::instance()->createTemplate("page");
		View::instance()->getRootTemplate()->putVariable("startPage",$pageTemplate);
		View::instance()->registerMediator(
			"pageMediator",
			new PageMediator($pageTemplate)
		);*/
		Controller::instance()->dispatchEvent(new PageEvent(PageEvent::SHOW_PAGE,2));
	}
}

?>